package android_design_mode.chapter11_commond;

public class ConcreteCommand implements Commond {

    // 持有一个接收者对象的引用
    private Receiver receiver;

    public ConcreteCommand(Receiver receiver) {
        this.receiver = receiver;
    }

    @Override
    public void execute() {
        receiver.action();
    }

}

